//http://code.google.com/p/alexframework/wiki/AlexServiceTutorial_ja

//import library
importScripts("../../html5_alex/alex.core-0.5.js", "../../html5_alex/alex.service-0.5.js");


new alex.service.Service("sumService", {
    sum: function(num){
        var result = 0;
        for (var i = 1; i <= num; i++) {
            result += i;
        }
        return result;
    }
});
